'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    //获取题目
    router.get('/api/question',controller.question.list);
    //答案
    router.post('/api/submit',controller.question.answer);
};